<?php

class My_View_Helper_UsuarioAtual extends Zend_View_Helper_Abstract {

    public $view;

    function setView(Zend_View_Interface $view)
    {
        $this->view = $view;
    }

    function UsuarioAtual()
    {
        $auth = Zend_Auth::getInstance();
        $string = "";
        if($auth->hasIdentity())
        {
            $user = $auth->getIdentity();
            ?>
            <form name="frmLogin" id="frmLogin" method="POST" action="default/usuarios/logout" class="pull-right">
                    <span class="uneditable-input input-large" style="display: inline-block;"><?php echo ucfirst($user->nome); ?></span>                    
                <button class="btn" type="submit">Sair</button>
            </form>        
          <?php
        }
    }
}
?>



